<div class="am-u-sm-12 widget main-w" >
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('/admin/car/index')}">业务管理</a></li>
		<li><a href="{:url('index')}">司机管理</a></li>
		<li class="am-active">{$item.driver_id?司机编辑:添加司机}</li>
	</ol>
	<form class="am-form-inline tpl-form-border-form" enctype="multipart/form-data" data-ajax="1" data-check="1">
		<input type="hidden" name="driver_id" value="{$item.driver_id}" />
		<input type="hidden" name="user_id" value="{$item.user_id|default=0}" />
		<div class="am-u-sm-8">

			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">姓名： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="name" data-check='require' data-msg="姓名不能为空" value="{$item.name}" />
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">身份证号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="id_card" data-check='require' data-msg="身份证号不能为空" value="{$item.id_card}" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">绑定用户/手机号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="hidden" class="user_id" name="user_id" value="{$item.user_id}" />
							<input type="text" class="am-form-field tpl-form-no-bg  user_name" name="username" value="{$item.username}" data-check='require' data-msg="用户不能为空" placeholder="点击选择用户" readonly="">
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p hidden" style="display:none ;">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">手机号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="number" class="tpl-form-input phone" name="phone" data-check='mobile' data-msg="手机号格式不正确" value="{$item.phone}" readonly/>
						</div>
					</div>

				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">掌握语言： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<select multiple data-am-selected="{btnWidth: '100%', btnSize: 'sm'}" name="language[]">
							{$languages}
							</select>
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">原职位： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="original_position" value="{$item.original_position}" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">性别： </label>
					<div class="am-form-group am-u-sm-8 cl-p" style="padding-left: 3px;">
						<div class="am-u-sm-12 cl-p">
							<select name="sex">
								<option value="0" <?=$item['sex'] == 0 ? 'selected' : '';?>>男</option>
								<option value="1" <?=$item['sex'] == 1 ? 'selected' : '';?> >女</option>
							</select>
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">所属公司： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="hidden" class="company_id" name="company_id" value="{$item.company_id}" />
							<input type="text" class="am-form-field tpl-form-no-bg  company_name" value="{$item.company_name}" data-check='require' data-msg="所属公司不能为空" placeholder="点击选择公司/单位" readonly="">
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">出生年月： </label>
					<div class="am-form-group am-u-sm-8 cl-p" style="padding-left: 3px;">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="am-form-field tpl-form-no-bg" name="birthday" value="{$item.birthday}" data-check='require' data-msg="请输入出生年月" data-am-datepicker="" readonly="">
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">驾龄（年）： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="number" class="tpl-form-input" name="driving_age" value="{$item.driving_age}" data-check='require' data-msg="驾龄不能为空" />
						</div>
					</div>
				</div>
			</div>

			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label" style="padding: 0;line-height: 35px;" style="padding: 0;">银行名称： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="bank" value="{$item.bank}" data-check='require' data-msg="银行名称不能为空" />
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">银行帐号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="bank_card" value="{$item.bank_card}"/>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">微信账号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="wechat" value="{$item.wechat}"/>
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">支付宝帐号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="alipay" value="{$item.alipay}"/>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label" style="padding: 0;line-height: 35px;" style="padding: 0;">司机工号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="driver_no" value="{$item.driver_no}" data-check='require' data-msg="司机工号不能为空" />
						</div>
					</div>
				</div>
				
				
				
				
			</div>
			
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;">现居住地址： </label>
					<div class="am-form-group am-u-sm-10 cl-p" style="padding-left: 3px;">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="add" value="{$item.add}" data-check='require' data-msg="地址不能为空" />
						</div>
					</div>
				</div>

			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<label for="user-name" class="am-u-sm-2 am-form-label cl-p" style="line-height: 35px;">司机照片： </label>
				<div class="am-u-sm-10 cl-p">
					<div class="am-u-sm-12 cl-p">
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">头像 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" src="{if $item.head_img}{:CxImg($item.head_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" alt="头像" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="head_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.head_img)}" alt="头像">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="head_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">半身照 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="半身照" src="{if $item.half_body_img}{:CxImg($item.half_body_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="half_body_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.half_body_img)}" alt="半身照">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="half_body_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">全身照 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="全身照" src="{if $item.body_img}{:CxImg($item.body_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="body_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.body_img)}" alt="全身照">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="body_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">保险 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="保险" src="{if $item.insurance_img}{:CxImg($item.insurance_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="insurance_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.insurance_img)}" alt="保险">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="insurance_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
					</div>
					<div class="am-u-sm-12 cl-p">
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">合同 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="合同" src="{if $item.contract_img}{:CxImg($item.contract_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="contract_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.contract_img)}" alt="合同">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="contract_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">身份证正面 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="身份证正面" src="{if $item.id_img}{:CxImg($item.id_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="id_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.id_img)}" alt="身份证正面">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="id_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">驾驶证 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="驾驶证" src="{if $item.driver_license_img}{:CxImg($item.driver_license_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="driver_license_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.driver_license_img)}" alt="驾驶证">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="driver_license_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
						<div class="am-form-group am-u-sm-3 cl-p">
							<div class="am-u-sm-12 am-margin-top-xs cl-p">
								<label class="am-u-sm-12 am-form-label  am-text-left">居住证 </label>
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" alt="居住证" src="{if $item.residence_permit_img}{:CxImg($item.residence_permit_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="residence_permit_img" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.residence_permit_img)}" alt="居住证">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" name="residence_permit_img" type="file" multiple="">
								</div>-->
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ; text-align: center;">
				<button type="button" class="am-btn am-btn-sm am-btn-primary am-radius keep">保存</button>
				<a  class="am-btn am-btn-sm am-btn-secondary am-radius back">返回上一页</a>
			</div>
		</div>
	</form>
</div>
</div>
</div>